{% extends "base.html" %}

{% block title %}订单确认{% endblock %}

{% block content %}
<div class="card animate-fade">
    <div class="card-header bg-success text-white">
        <h2 class="mb-0"><i class="bi bi-check-circle me-2"></i>订单创建成功</h2>
    </div>
    <div class="card-body text-center">
        <div class="mb-4">
            <i class="bi bi-check-circle-fill text-success" style="font-size: 5rem;"></i>
        </div>
        <h3 class="mb-4">您的订单已成功创建！</h3>
        
        <div class="card mb-4">
            <div class="card-body">
                <h5 class="card-title">订单详情</h5>
                <p class="card-text">电影：{{ order.show.movie.title }}</p>
                <p class="card-text">影院：{{ order.show.cinema.name }}</p>
                <p class="card-text">影厅：{{ order.show.hall }}</p>
                <p class="card-text">时间：{{ order.show.start_time.strftime('%Y-%m-%d %H:%M') }}</p>
                <p class="card-text">座位：{{ order.seats }}</p>
                <p class="card-text">总价：<strong>{{ order.total_price }}元</strong></p>
            </div>
        </div>
        
        <div class="d-flex justify-content-center">
            <a href="{{ url_for('home_bp.base') }}" class="btn btn-primary me-3">
                <i class="bi bi-house me-2"></i>返回首页
            </a>
            <a href="{{ url_for('movie_list') }}" class="btn btn-outline-primary">
                <i class="bi bi-film me-2"></i>继续购票
            </a>
        </div>
    </div>
</div>
{% endblock %}